from selenium import webdriver
from selenium.webdriver.common.by import By


driver=webdriver.Chrome()
driver.get("http://192.168.46.5:18089/login")
driver.find_element(By.NAME,"username").send_keys("XTGLY")
driver.find_element(By.NAME,"password").send_keys("123456")
driver.find_element(By.NAME,"signIn").click()

# 截图  (r+路径)
driver.get_screenshot_as_file(r"C:\Users\speakj\Pictures\Camera Roll\denglu1.png")